Get Link Position
April 15, 2008 · 18 views · 0 comments
Nearby In Time
Final hours for the big contest
April 12, 2008
The end of the contest
April 12, 2008
Deadline passed, assett server acting up
April 12, 2008
Back on the grid
April 15, 2008
Get Link Position
April 15, 2008
To Sit or Stand? Why not both?
April 16, 2008
3D Space Navigator
April 16, 2008
The Great Snail Race
April 19, 2008
The worst thing about snail races
April 19, 2008
About
So I needed to synchronize my script to be aware of all positions that avatars are sitting at if the script is reset. This could be a nightmare. llGetPos/llGetRootPos only gets the position of the root prim. llGetLocalPos has to be run inside the link itself. llGetPrimitiveParams works - but again it has to run in the prim itself (there is no such thing as llGetLinkPrimitiveParams or llGetLinkPos). There is one thing left. Using llGetLinkKey, I can query information from llGetObjectDetails(avatarId, [OBJECT_POS]). Now the trick is to translate the regional cordinates into local cordinates with llGetPos(). From Dedric Mauriac via blogHUD.com